﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yugi_Gui.Animation
{
    public class InvokeSchedue : ISchedue
    {
       
        private Action mainWork;

        public InvokeSchedue(Action mainWork)
        {
            this.mainWork = mainWork;
        }
        #region ISchedue Members

        public void DoWork(Action complete)
        {
           
            if (mainWork != null)
                mainWork();

            complete();
        }

        #endregion
    }
}
